﻿namespace GalFrameWork.Service;

public class RouteService : IRouteService
{
    // pageKey -> route
    private readonly Dictionary<string, string> _routeDictionary = new()
    {
        [RootNavigationConstant.GameStartPage] = RootNavigationConstant.GameStartPage,
        [RootNavigationConstant.GameEditPage] = RootNavigationConstant.GameEditPage,
        [RootNavigationConstant.SetUpPage] = RootNavigationConstant.SetUpPage,
        [RootNavigationConstant.SceneEditPage] = RootNavigationConstant.SceneEditPage,
        // pageKey "TodayPage" -> route "TodayPage"
        //[ContentNavigationConstant.TodayDetailPage] =
        //$"{RootNavigationConstant.TodayPage}/{ContentNavigationConstant.TodayDetailPage}",
    };

    public string GetRoute(string pageKey) => _routeDictionary[pageKey];
}